﻿<%@ Page Language="C#" AutoEventWireup="false" Inherits="Web.BasePage"%>
    <%
        Server.Execute("Parts/V1/Security/Manage.aspx");
    %>
    <div class="mb5 clearfix">
        <div id="logo"></div>
        <div id="tr">
            <div class="search">
                <%--暂时隐藏搜索功能<label>搜索</label><input type="text" class="field" /><button>搜索</button>--%>
            </div>
        </div>
    </div>
    <div id="nav">
        <ul id="main_nav">
            <li><a href="default.aspx" class="cur">首  页</a></li>
            <li class="n2">
                <a href="Default.aspx?Module=NnjBrand&Handler=Article&Action=About&Id=10000000-0000-0000-0000-000000000001">关于纽恩健</a>
             </li>
            <li class="n3">
                <a href="Default.aspx?Module=NnjBrand&Handler=Article&Action=Brand&Id=30000000-0000-0000-0000-000000000001">品牌故事</a>
            </li>
            <li class="n4">
                <a href="Default.aspx?Module=NnjBrand&Handler=Article&Action=Brand&Id=30000000-0000-0000-0000-000000000002">品牌文化</a>
            </li>
            <li class="n5">
                <a href="Default.aspx?Module=NuenJane&Action=Index">产品中心</a>
            </li>
            <li class="n6">
                <a href="Default.aspx?Module=NnjKnowledge&Action=Index">营养与美丽</a>
            </li>
            <li class="n7">
                <a href="Default.aspx?Module=Message&Handler=Message&Action=New&Id=20000000-0000-0000-0000-000000000001">雁过留声</a>
            </li>
        </ul>
        <span class="shop"><a href="http://niuenjian.taobao.com" target="_blank">网上商城</a></span>
    </div>
<script type="text/javascript">

// 突出显示主导航
(function($){
    var li = $("#main_nav > li");
    var a = li.find(">a");

    var setCur = function(index){
            a.removeClass("cur").eq(index).addClass("cur");
            li.find(">ul").hide();
            li.eq(index).find(">ul").show();
    };
    
    $(function(){
        var module = "<%=this.Module %>" || "";
        var id = "<%=Request.QueryString["Id"] %>" || "";

        switch(module.toLowerCase()){
            case "nnjbrand" : 
                if( 0==id.indexOf("1") )
                    return setCur(1);
                else if( 0==id.indexOf("3") ){
                    return 35==id.indexOf("1",35) ? setCur(2) : setCur(3);
                }else if( 0==id.indexOf("4") )
                    return setCur(8);
            case "nuenjane" : return setCur(4);
            case "nnjknowledge" : return setCur(5);
            case "message" : return setCur(6);
            default:  return setCur(0);
        }
    });

})(jQuery);

// 突出显示子导航
(function($){

})(jQuery);
</script>